const koa = require("koa")
const app = new koa();
const router = require("./routes")
const bodyparser = require("koa-bodyparser")

app.use(bodyparser());
app
    .use(router.routes())
    .use(router.allowedMethods())

app.listen(3001, () => {
    console.log("启动成功")
})